package com.jiaomatech.demo.order.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * Description: 订单信息 .<br>
 *
 * @author m-xy
 *     Created By 2019/10/18 14:14
 */
@Data
@ApiModel("订单信息")
public class OrderDto implements Serializable {
    @ApiModelProperty("订单ID")
    private String orderId;
    @NotBlank(message = "买家不能为空")
    @ApiModelProperty("买家ID")
    private String buyerId;
    @ApiModelProperty("买家名称")
    private String buyerName;
    @ApiModelProperty("卖家名称")
    private String sellerName;
    @NotNull(message = "订单金额不能为空")
    @ApiModelProperty("订单实付金额")
    private BigDecimal price;
}
